import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ContactsApplyComponent } from './contacts-apply/contacts-apply.component';
import { ContactsCreateComponent } from './contacts-create/contacts-create.component';
import { ContactsDetailComponent } from './contacts-detail/contacts-detail.component';
import { ContactsMobileComponent } from './contacts-mobile/contacts-mobile.component';

import { ContactsPage } from './contacts.page';

const routes: Routes = [
  {
    path: '',
    component: ContactsPage
  },
  {
    path: 'contacts-detail',
    component: ContactsDetailComponent
  },
  {
    path: 'contacts-create',
    component: ContactsCreateComponent
  },
  {
    path: 'contacts-mobile',
    component: ContactsMobileComponent
  },
  {
    path: 'contacts-apply/:userid',
    component: ContactsApplyComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ContactsPageRoutingModule { }
